//
//  EventTableViewCell.swift
//  Pods
//
//  Created by eme on 2017/4/7.
//
//

import UIKit

class EventTableViewCell: UITableViewCell {
    
    @IBOutlet weak var name_Label: UILabel!
    
    @IBOutlet weak var countLabel: UILabel!
    
    @IBOutlet weak var price_Label: UILabel!
    
    var item:PayArrayModel?{
        didSet{
            if let model = item{
                self.name_Label.text = model.bdname
                self.countLabel.text = "共\(model.totalnumber)件"
                self.price_Label.text = model.orderamount.getPriceStr()
            }
        }
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        name_Label.normal_fontSize(12)
        countLabel.normal_fontSize(12)
        price_Label.normal_fontSize(17)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
    }

}
